﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using CVS.Gateway.DAL;

namespace CVS.Gateway
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICvsGateway" in both code and config file together.
    [ ServiceContract ]
    public interface ICvsGateway
    {
        [ OperationContract ]
        List< Submission > GetPendingSubmissions( );

        [ OperationContract ]
        bool AddCompilationResult( CompilationResult compilationResult );

        [ OperationContract ]
        bool AddTestRuns( List< TestRun > testRuns );
    }

    //[ DataContract ]
    //public class GetSubmissionsResponse
    //{
    //    [ DataMember ]
    //    public ResponseStatus Response { get; set; }

    //    [ DataMember ]
    //    public List< Submission > Submisstions { get; set; }
    //}

    //[ DataContract ]
    //public enum ResponseStatus
    //{
    //    Success,
    //    Error
    //}
}